<?php
class Index extends Action {
	/*
	 * (non-PHPdoc) @see Action::execute()
	 */
	public function execute($params) {
		check_login ( ADMIN_LOGIN_PAGE );
		$data = array ();		
		$tagM = new WebTagModel ();
		
		$flags = $tagM->getFlags ();
		$data ['flags'] = $flags ? $flags : array ();
		$tags = $tagM->getTags ();
		$data ['tags'] = $tags ? $tags : array ();
		
		$data ['labels'] = array ('','label-success','label-warning','label-important','label-info','label-inverse' );
		$data ['navi'] = 'tags';
		return new SmartyView ( $data, 'tags/Index' );
	}
}